import request from '@/utils/request.js'
//文章分类列表查询
export const articleCategoryListService=()=>{
   
    return request.get('/category')
}
//文章分类添加
export const articleCategoryAddService=(categoryData)=>{
   
    return request.post('/category',categoryData)
}
//更新文章分类
export const articleCategoryUpdateService=(categoryData)=>{
   
    return request.put('/category',categoryData)
}
//删除文章分类
export const articleCategoryDeleteService=(id)=>{//参数格式：JSON
   
    return request.delete('/category?id='+id)
}
//获取文章列表
export const articleListService=(params)=>{//参数格式：queryString
    return request.get("/article",{params:params})
}
//文章添加
export const articleAddService=(articleData)=>{//JSON
    return request.post("/article",articleData)
}